package com.hyk.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyk.enums.CodeGeneratorEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 代码生成器表
 * </p>
 *
 * @author hyk
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("code_generator_x")
@ApiModel(value="CodeGeneratorX对象", description="代码生成器表")
public class CodeGeneratorX implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "关联数据源id")
    private Long dataId;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "包路径")
    private String packageUrl;

    @ApiModelProperty(value = "表名逗号分隔")
    private String tableName;

    @ApiModelProperty(value = "模块名")
    private String modelName;

    @ApiModelProperty(value = "0:未执行，1:已执行")
    private Integer status;

    @TableLogic
    @ApiModelProperty(value = "0:未删除，1已删除")
    private Integer isDelete;

    private Date createTime;

    private Date updateTime;

    @Version
    @ApiModelProperty(value = "乐观锁")
    private Integer version;


}
